//
//  CityModel.m
//  PerfectWorld
//
//  Created by dllo on 16/9/2.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "CityModel.h"
#import "AreaList.h"
@implementation CityModel

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"areaList"]) {
        NSMutableArray<AreaList *> *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            AreaList * areaList = [AreaList modelWithDic:dic];
            [array addObject:areaList];
        }
        _areaList = array;
    }
}

@end
